<template>
  <Index
    ref="index"
    title="生产提报"
    type="2"
    @itemClick="itemClick"
    pageStatus="production-reporting"
  />
</template>

<script>
import Index from "@/pages/staging/components/index";
export default {
  components: { Index },
  data() {
    return {};
  },
  onShow: function () {
    if (this.$refs.index) this.$refs.index.onRefresh();
    uni.setStorageSync("getSelectList", null);
    uni.setStorageSync("getSelectLists", null);
  },
  methods: {
    itemClick(data) {
      uni.navigateTo({
        url:
          "/pages/staging/production-reporting/details?workOrder=" +
          data.workCode,
        animationType: "pop-in",
      });
    },
  },
};
</script>
